﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WineModel;
using WineDAL;
using System.Collections;
using System.Data;

namespace WineBLL
{
   public class WineIndentBLL
    {
       WineIndentDAL dal = new WineIndentDAL();
         /// <summary>
        /// 订单信息显示
        /// </summary>
        /// <returns></returns>
       public ArrayList IndentShow(int id)
       {
           return dal.IndentShow(id);
       }
         /// <summary>
        /// 取消订单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       public int IndentsDelete(int id)
       {
           return dal.IndentsDelete(id);
       }
       /// <summary>
       /// 添加订单信息
       /// </summary>
       /// <param name="UsersID"></param>
       /// <param name="IndentNumber"></param>
       /// <param name="Payfreght"></param>
       /// <param name="PayDue"></param>
       /// <param name="PayMent"></param>
       /// <param name="LeaveWord"></param>
       /// <param name="Express"></param>
       /// <param name="InventoryID"></param>
       /// <param name="Total"></param>
       /// <param name="ConsigneeID"></param>
       /// <param name="xml"></param>
       /// <returns></returns>
       public int AddIndent(int UsersID, int IndentNumber, decimal Payfreght, decimal PayDue, int PayMent, string LeaveWord, string Express, string InventoryID, decimal Total, int ConsigneeID, ArrayList xml)
       {
           return dal.AddIndent(UsersID, IndentNumber, Payfreght, PayDue, PayMent, LeaveWord, Express, InventoryID, Total, ConsigneeID, xml);
       }
    }
}
